package com.coder.rabbit.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject:coder_parent
 * @BelongsPackage:com.coder.rabbit.customer
 * @Author:linchong
 * @CreateTime:2019-01-07 16:49
 * @Description:
 */
//消费者
@Component
@RabbitListener(queues = "java")
public class Customer3 {

    @RabbitHandler
    public void getMsg(String msg) {
        System.out.println("java，"+msg);
    }

}
